//
//  Owner_HomeCell.m
//  YLProject
//
//  Created by 张伯林 on 2018/1/30.
//  Copyright © 2018年 WY. All rights reserved.
//

#import "Owner_HomeCell.h"

@implementation Owner_HomeCell
-(void)initWithModel:(Owner_HomeCellModel *)model{
    self.iconImageView.image = [UIImage imageNamed:model.iconImageName];
    self.attLabel.text = model.title;
    if ([model.isHaved isEqualToString:@"Y"]) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        self.versionLabel.hidden = YES;
    }else{
        self.versionLabel.hidden = NO;
        NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
        CFShow((__bridge CFTypeRef)(infoDictionary));
        NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
        self.versionLabel.text = app_Version;
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
